<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>看门狗</title>
<link rel="shortcut icon" href="/common/images/favicon.ico" type="image/x-icon" />
<style type="text/css">

		.supplierManage{
		background:#FFFFFF;
		}
		.foodWindowTd{
			border:solid 1px #99FFFF;
		}
		.titleTd{
			background-color:#99FF33;
			height:40px;
		 	text-align:center; 
		 	border:solid 1px #339966;
		}
	
		
		.contentTd{
			border:solid 1px #339966;
			vertical-align:middle;
			text-align:center;
		}
		.contentDiv{
			display: flex;flex-wrap:wrap;
		}
		
		.guidItem{
			font-size:46px;
			background:#CCFF33;
			border-bottom:2px dotted #0033FF;
			height:100px;
			text-align:center;
		}
		
		.windowBtn{
			margin:3px;
			background:#048fb0;
			vertical-align: middle; 
			display:inline-block; 
			padding:0 10px; 
			border:none; border:0;border-radius:2px; 
			text-align:center;  
			color:#fff; cursor:pointer; 
			font-size:14px;
			height:26px;

			color:#fff !important;
		}
		
		.menuBtn{
			margin-bottom:3px;
			background:#048fb0;
			vertical-align: middle; 
			display:inline-block; 
			padding:0 10px;
			margin:3px;
			border:none; border:0;border-radius:2px; 
			text-align:center;  
			color:#fff; cursor:pointer; 
			font-size:14px;
			height:26px;
			color:#fff !important;
		}
		
		.menuPurchase{
			width:50px;
		}
		.menuDiv{
			display:inline;
			width:280px;
			border:solid 2px #66FFCC;
			margin:5px;
			background-color:#FFFF99;
		}
		
		.btn-delete {
			background: url('/watchDog/images/icon-pic.png') no-repeat center;
			background-position:-90px -10px;
			height: 24px;
			width:24px;
			line-height: 22px;
			padding: 2px 14px;
			cursor: pointer;
		}
		
		.btn-edit {
			background: url('/watchDog/images/icon-pic.png') no-repeat center;
			background-position:-122px -10px;
			height: 24px;
			width:24px;
			line-height: 22px;
			padding: 2px 14px;
			cursor: pointer;
		}

    </style>

<script type="text/javascript" src="/common/scripts/dynamicImportJs.js"></script>
<script>
	loadScript("/common/scripts/jquery-min.js");
	loadScript("/common/scripts/common.js");
	loadScript("/lib/easyUI-1.4.5/easyui.js");
	loadScript("/watchDog/scripts/watchDog.js");
</script>
</head>
<body >
	<table width="100%" height="100%" id="mainTable" cellpadding="0" cellspacing="0" vspace="0" hspace="0">
		<tr>
			<td height="40px" align="right">
				<input type='button' style='width:200px; height:40px;' class='windowBtn' value='新增监控项' onclick='watchDog.addWatchDog()' />
			</td>
		</tr>
		<tr>
			<td valign="top">
			<table width="100%" cellpadding="0" cellspacing="0" vspace="0" hspace="0">
				<tr>
					<td width="80px" class='titleTd'>ID</td>
					<td class='titleTd'>程序路径</td>
					<td class='titleTd' width="150px">每日重启时间</td>
					<td class='titleTd' width="150px">重启时间间隔(S)</td>
					<td class='titleTd' width="150px">运行时间</td>
					<td class='titleTd' width="150px">状态</td>
					<td class='titleTd' width="250px">操作</td>
				</tr>
				<tbody id="windowList">
				</tbody>
			</table>
				
			</td>
		</tr>
		
	</table>
	
	
	<!-- 对话框开始 -->
	<div id="watchDogDiv" class="easyui-window" style="width: 400px; height:200px; " title="修改监控项" minimizable="false" modal="true" collapsible="false" resizable="false" maximizable="false"
		closed="true">
		<input type="hidden" id="watchDogId" >
		<table class="window-table" style="table-layout: fixed;margin-left: 5px;" height="100%" width="100%">
			<tr class="window-tr" height="40px">
				<td align="right" width="100px">程序路径:</td>
				<td align="left"><input type="text" id="programPath" value="" style="width:300px" /></td>
			</tr>
			<tr class="window-tr" height="40px">
				<td align="right">每日重启时间(S):</td>
				<td align="left"><input type="text" id="rebootTime" value="" style="width:300px" /></td>
			</tr>
			<tr class="window-tr" height="40px">
				<td align="right">重启时间间隔:</td>
				<td align="left"><input type="text" id="rebootInterval" value="" style="width:300px" /></td>
			</tr>
			<tr height="40px">
				<td align="center" colspan="2">
					<input id="submitChange" class="windowBtn" value="确定" type="button"  onClick="watchDog.submitEditWatchDog()" />
					<input id="cancelChange" class="windowBtn" value="取消" type="button" onClick="watchDog.cancelEditWatchDog()" />
					</td>
				</td>
			</tr>
		</table>
	</div>


</body>
<script>
$(document).ready(function() {
			watchDog.init();
		});

</script>
</html>